import { createConfigForNuxt } from '@nuxt/eslint-config/flat'

export default createConfigForNuxt({
  features: { stylistic: true, tooling: true },
  dirs: { src: ['./playground'] },
})
  .append({
    files: ['src/**'],
    rules: {
      '@typescript-eslint/no-explicit-any': 0,
      '@typescript-eslint/no-dynamic-delete': 0,
      'regexp/no-super-linear-backtracking': 0,
    },
  })
  .append({
    files: ['test/**'],
    rules: { 'vue/multi-word-component-names': 'off' },
  })
